<h1>Listing rosters</h1>

<table>
  <tr>
    <th>User</th>
    <th>Player</th>
  </tr>

<% @picks.each do |roster| %>
  <tr>
    <td><%=h roster.user_id %></td>
    <td><%=h roster.player_id %></td>
    <td><%= link_to 'Show', roster %></td>
    <td><%= link_to 'Edit', edit_roster_path(roster) %></td>
    <td><%= link_to 'Destroy', roster, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New roster', new_roster_path %>